package com.example.smart.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "角色菜单关联")
public class RoleMenu {
    @Schema(description = "角色编号")
    @TableId(type = IdType.AUTO)
    @JSONField(serialize = false)
    private Integer roleId;
    @TableField(exist = false)
    private Role role;
    @Schema(description = "菜单编号")
    @TableId(type = IdType.AUTO)
    @JSONField(serialize = false)
    private Integer menuId;
    @TableField(exist = false)
    private Menu menu;
}
